﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using WPExtensions;

namespace WPExtensionsDemo.UITest
{
    public partial class AdvancedApplicationBarTestPivot : PhoneApplicationPage
    {
        public AdvancedApplicationBarTestPivot()
        {
            InitializeComponent();
        }

        private void AdvancedApplicationBarIconButton_Click(object sender, EventArgs e)
        {
            var appBar = (sender as AdvancedApplicationBarIconButton).ParentAdvancedApplicationBar;
            if (appBar != null)
            {
                appBar.IsVisible = true;
                appBar.IsMenuEnabled = true;
                appBar.BackgroundColor = Colors.Blue;
                appBar.ForegroundColor = Colors.Green;
                 appBar.Mode=ApplicationBarMode.Minimized;
                appBar.Opacity = 0.2;
            }
            //(this.DataContext as ViewModelDemo).Opacity = 1 - (this.DataContext as ViewModelDemo).Opacity;
        }
    }
}